package org.darkforest.common.services.impl;

import org.darkforest.common.services.ExpressService;
import org.darkforest.dao.mapper.ExpressMapper;
import org.darkforest.model.Express;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by huayunsky on 12/17/2015.
 */
@Service
public class ExpressServiceImpl implements ExpressService{

    @Autowired
    private ExpressMapper expressMapper;

    @Override
    public Express selectByCondition(Express page) {
        page.setResultList(expressMapper.selectByCondition(page));
        return page;
    }

    @Override
    public Express selectByPrimaryKey(int id) {
        return expressMapper.selectByPrimaryKey(id);
    }

    @Override
    public void updateByPrimaryKeySelective(Express page) {
            expressMapper.updateByPrimaryKeySelective(page);
    }
}
